home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-05 / lawn.zip / SETX10.BAT < prev    next >
DOS Batch File  |  1991-07-09  |  1KB  |  45 lines

  1. @echo off
  2. rem type 'SETX10' to display output to screen
  3. rem type 'SETX10 filename' to redirect output to a log file
  4. echo ┌─────────────────────────────┐
  5. echo │  Starting SETX10 Procedure  │
  6. echo └─────────────────────────────┘
  7. set LOG=
  8. if (%1)==() goto skplog
  9. echo.>%1
  10. set LOG=>>%1
  11. :skplog
  12. echo .............................................................. %LOG%
  13. echo Initialize the local Lawn & connect to the X10/Lawn %LOG%
  14. rem
  15. rem Use the following line when using XL.EXE
  16. lawn -a,-i,di,co x10 %LOG%
  17. rem
  18. rem Use the following line with any other X10 software
  19. rem lawn -a,-i,di,ab 600,-b600,-c,co x10 %LOG%
  20. rem
  21. if errorlevel 0 goto skperr
  22. echo Error Initializing Lawn - aborting batch file
  23. goto end
  24. :skperr
  25. echo .............................................................. %LOG%
  26. echo Reprogram the X10 using a copy of XA patched to use the serial %LOG%
  27. echo port at the existing settings instead of 600 baud %LOG%
  28. rem
  29. xl f=reset.x10 %LOG%
  30. echo .............................................................. %LOG%
  31. echo Query the X10 for a list of all programmed events %LOG%
  32. rem
  33. xr -s %LOG%
  34. echo. %LOG%
  35. echo .............................................................. %LOG%
  36. echo Disconnect the Lawn-to-Lawn connection %LOG%
  37. rem
  38. rem Use the following line when using XL.EXE
  39. lawn -a,-c,di %LOG%
  40. rem
  41. rem Use the following line with any other X10 software
  42. rem lawn -a,-c,di,ab 19200,-b19200 %LOG%
  43. rem
  44. :end
  45.